#include "Scene1.h"
#include <daisy\OgreGraphicsManager.h>
#include <daisy\EventSystem.h>
#include <OGRE\Ogre.h>
#include <OgreNewt.h>
#include <daisy\NewtonPhysicsManager.h>
#include <tinyxml\tinyxml.h>
#include "ModelConfig.h"
#include "Branch1EventDef.h"

Scene1::Scene1(const std::string &name):
Branch1Scene(name)
{
	_fileName = "DaisyScene1Config.xml";
}
Scene1::~Scene1(){}
void Scene1::doEnable()
{
	enableUpdate();
	addChannel(DAISY::EventChannel::create().addUserChannel<2>());
	
	using namespace Ogre;

	Ogre::Viewport* viewport = DAISY::OgreGraphicsManager::getInstancePtr()->getRenderWindow()->getViewport(0);

	Camera* camera =_sceneMgr->getCamera("MainCamera");
		
	//Blue sky background color
	viewport->setBackgroundColour(ColourValue(0.8f, 0.8f, 0.8f));

	
}
void Scene1::doDisable()
{
	Branch1Scene::doDisable();
}
void Scene1::doFrame()
{	
}
void Scene1::doExecute(DAISY::Event* evt){}

const std::string & Branch1Scene1Factory::getTypeName() const
{
	static const std::string typeName("Scene1");	
	return typeName;
}
Branch1Scene1Factory::pointer_type Branch1Scene1Factory::createInstance(const std::string& instanceName, parameter_type parameter)
{
	return pointer_type(new Scene1(instanceName));
}
